var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        im.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        im.dispose()
    } else {
        if (status === a++) {
            var e = im.getItemId();
            if (im.isQuestActive(64084)) {
                im.sendOkS("赶紧交给艾丽卡吧。")
            } else {
                im.sendOkS("用不上了。丢了吧。");
                im.removeAll(e)
            }
        } else {
            im.dispose()
        }
    }
};